package com.aaa.service.impl;

import com.aaa.commen.domain.EcoAssetInfo;
import com.aaa.commen.entity.Result;
import com.aaa.mapper.EcoAssetInfoMapper;
import com.aaa.service.IEcoAssetInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-02-24
 */
@Service
public class EcoAssetInfoServiceImpl extends ServiceImpl<EcoAssetInfoMapper, EcoAssetInfo> implements IEcoAssetInfoService {

    @Autowired
    private EcoAssetInfoMapper ecoAssetInfoMapper;

    /**
     * 查询产证所属信息
     * @return
     */
    @Override
    public Result queryEcoOwnerShip() {
        List<EcoAssetInfo> ecoAssetInfos = ecoAssetInfoMapper.queryEcoOwnerShip();
        return Result.success(ecoAssetInfos);
    }
}
